package com.tianshuo.circledepend.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName : CircleConfig
 * @Description : 循环依赖配置
 * 增加的@Configuration注解之后,AnnotatedGenericBeanDefinition (配置类的bd) 配置属性设置为full,为full时,
 * spring会为其增肌CGLIB代理增强,同时解决@Bean时,循环调用破坏单例
 * 如果没有@Configuration但是有@ComponentScan,AnnotatedGenericBeanDefinition (配置类的bd) 配置属性设置为lite
 * @Author : tianshuo
 * @Date: 2020-08-28 11:39
 */
@Configuration
@ComponentScan("com.tianshuo.circledepend")
public class CircleConfig {
}

